﻿using System;
using System.Collections.Generic;
using System.IO;
using Character;
using UnityEngine;

// Token: 0x02000397 RID: 919
public class ThumnbnailCapture : MonoBehaviour
{
	// Token: 0x060016BB RID: 5819 RVA: 0x000975A8 File Offset: 0x000957A8
	private void Start()
	{
		this.human = base.GetComponentInChildren<Human>();
		if (this.human.sex == SEX.FEMALE)
		{
			if (this.cardF.Length > 0)
			{
				string file = Application.dataPath + "/../UserData/Chara/Female/" + this.cardF;
				this.human.Load(file, -1);
			}
			else
			{
				this.human.Apply();
			}
			this.human.blink.Hold = true;
			this.human.body.bustDynamicBone_L.enabled = false;
			this.human.body.bustDynamicBone_R.enabled = false;
		}
		else
		{
			if (this.cardM.Length > 0)
			{
				string file2 = Application.dataPath + "/../UserData/Chara/Male/" + this.cardM;
				this.human.Load(file2, -1);
			}
			else
			{
				this.human.Apply();
			}
			Male male = this.human as Male;
			male.SetShowTinWithWear(false);
		}
		this.human.body.Anime.speed = 1f;
	}

	// Token: 0x060016BC RID: 5820 RVA: 0x000976CC File Offset: 0x000958CC
	public void CaptureStart()
	{
		this.human.blink.Hold = true;
		this.capturing = true;
		this.step = 0;
		this.keys.Clear();
		this.human.gameObject.SetActive(true);
		if (this.type == ThumnbnailCapture.TYPE.HAIR_SET)
		{
			foreach (KeyValuePair<int, BackHairData> keyValuePair in CustomDataManager.Hair_b)
			{
				if (keyValuePair.Value.isSet)
				{
					this.keys.Add(keyValuePair.Key);
				}
			}
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_BACK)
		{
			foreach (KeyValuePair<int, BackHairData> keyValuePair2 in CustomDataManager.Hair_b)
			{
				if (!keyValuePair2.Value.isSet)
				{
					this.keys.Add(keyValuePair2.Key);
				}
			}
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_SIDE)
		{
			this.ToList<HairData>(CustomDataManager.Hair_s);
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_FRONT)
		{
			this.ToList<HairData>(CustomDataManager.Hair_f);
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_MALE)
		{
			this.ToList<BackHairData>(CustomDataManager.Hair_Male);
			Male male = this.human as Male;
			male.ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type >= ThumnbnailCapture.TYPE.WEAR_TOP && this.type <= ThumnbnailCapture.TYPE.WEAR_SHOES)
		{
			WEAR_TYPE wear_TYPE = (WEAR_TYPE)(this.type - 5);
			this.ToList<WearData>(CustomDataManager.GetWearDictionary_Female(wear_TYPE));
		}
		else if (this.type == ThumnbnailCapture.TYPE.WEAR_MALE_TOP)
		{
			this.ToList<WearData>(CustomDataManager.GetWearDictionary_Male(WEAR_TYPE.TOP));
			Male male2 = this.human as Male;
			male2.ChangeMaleShow(MALE_SHOW.CLOTHING);
		}
		else if (this.type == ThumnbnailCapture.TYPE.WEAR_MALE_SHOES)
		{
			this.ToList<WearData>(CustomDataManager.GetWearDictionary_Male(WEAR_TYPE.SHOES));
			Male male3 = this.human as Male;
			male3.ChangeMaleShow(MALE_SHOW.CLOTHING);
			male3.SetWearShoes(true);
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_SKIN_F)
		{
			this.ToList<PrefabData>(CustomDataManager.FaceSkins_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_DETAIL_F)
		{
			this.ToList<PrefabData>(CustomDataManager.FaceDetails_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.MOLE)
		{
			this.ToList<CombineTextureData>(CustomDataManager.Mole);
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYESHADOE)
		{
			this.ToList<CombineTextureData>(CustomDataManager.EyeShadow);
		}
		else if (this.type == ThumnbnailCapture.TYPE.CHEEK)
		{
			this.ToList<CombineTextureData>(CustomDataManager.Cheek);
		}
		else if (this.type == ThumnbnailCapture.TYPE.LIP)
		{
			this.ToList<CombineTextureData>(CustomDataManager.Lip);
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_TATTO)
		{
			this.ToList<CombineTextureData>(CustomDataManager.FaceTattoo_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_SKIN_M)
		{
			this.ToList<PrefabData>(CustomDataManager.FaceSkins_Male);
			((Male)this.human).ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_DETAIL_M)
		{
			this.ToList<PrefabData>(CustomDataManager.FaceDetails_Male);
			((Male)this.human).ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_TATTO_M)
		{
			this.ToList<CombineTextureData>(CustomDataManager.FaceTattoo_Male);
			((Male)this.human).ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type == ThumnbnailCapture.TYPE.BEARD)
		{
			this.ToList<PrefabData>(CustomDataManager.Beard);
			((Male)this.human).ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYEBROW_F)
		{
			this.ToList<PrefabData>(CustomDataManager.Eyebrow_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYEBROW_M)
		{
			this.ToList<PrefabData>(CustomDataManager.Eyebrow_Male);
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYELASH_F)
		{
			this.ToList<PrefabData>(CustomDataManager.Eyelash);
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYE_F)
		{
			this.ToList<PrefabData>(CustomDataManager.Eye_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYE_M)
		{
			this.ToList<PrefabData>(CustomDataManager.Eye_Male);
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SKIN_F)
		{
			this.ToList<PrefabData>(CustomDataManager.BodySkins_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SKIN_M)
		{
			this.ToList<PrefabData>(CustomDataManager.BodySkins_Male);
			((Male)this.human).ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type == ThumnbnailCapture.TYPE.UNDER_HAIR)
		{
			this.ToList<UnderhairData>(CustomDataManager.Underhair);
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_TATTO_F)
		{
			this.ToList<CombineTextureData>(CustomDataManager.BodyTattoo_Female);
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_TATTO_M)
		{
			this.ToList<CombineTextureData>(CustomDataManager.BodyTattoo_Male);
			((Male)this.human).ChangeMaleShow(MALE_SHOW.NUDE);
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SUNBURN)
		{
			this.ToList<CombineTextureData>(CustomDataManager.Sunburn);
		}
		for (int i = 0; i < this.cameras.Length; i++)
		{
			if (this.cameras[i] != null)
			{
				this.cameras[i].gameObject.SetActive(i == (int)this.type);
			}
		}
		this.SetAnime();
		if (this.type < (ThumnbnailCapture.TYPE)this.cameras.Length)
		{
			this.canvas.worldCamera = this.cameras[(int)this.type];
		}
		else
		{
			this.canvas.worldCamera = null;
		}
		if (this.canvas.worldCamera == null)
		{
			this.canvas.worldCamera = Camera.main;
		}
		this.folderName = this.folderNames[(int)this.type];
	}

	// Token: 0x060016BD RID: 5821 RVA: 0x00097CBC File Offset: 0x00095EBC
	public void LoadHuman()
	{
		if (this.human.sex == SEX.FEMALE)
		{
			if (this.cardF.Length > 0)
			{
				string file = Application.dataPath + "/../UserData/Chara/Female/" + this.cardF;
				this.human.Load(file, -1);
			}
			else
			{
				this.human.Apply();
			}
			this.human.blink.Hold = true;
			this.human.body.bustDynamicBone_L.enabled = false;
			this.human.body.bustDynamicBone_R.enabled = false;
		}
		else
		{
			if (this.cardM.Length > 0)
			{
				string file2 = Application.dataPath + "/../UserData/Chara/Male/" + this.cardM;
				this.human.Load(file2, -1);
			}
			else
			{
				this.human.Apply();
			}
			Male male = this.human as Male;
			male.SetShowTinWithWear(false);
		}
		this.human.body.Anime.speed = 1f;
	}

	// Token: 0x060016BE RID: 5822 RVA: 0x00097DD4 File Offset: 0x00095FD4
	private void ToList<TValue>(Dictionary<int, TValue> dic)
	{
		foreach (int item in dic.Keys)
		{
			this.keys.Add(item);
		}
	}

	// Token: 0x060016BF RID: 5823 RVA: 0x00097E38 File Offset: 0x00096038
	private void SetAnime()
	{
		if (this.human.sex == SEX.FEMALE)
		{
			if (this.type == ThumnbnailCapture.TYPE.WEAR_GLOVE)
			{
				this.human.body.Anime.Play("tachi_pose_07");
			}
			else if (this.type == ThumnbnailCapture.TYPE.WEAR_SOCKS || this.type == ThumnbnailCapture.TYPE.WEAR_SHOES)
			{
				this.human.body.Anime.Play("tachi_pose_12");
			}
			else if (this.type == ThumnbnailCapture.TYPE.WEAR_SHORTS)
			{
				this.human.body.Anime.Play("tachi_pose_04");
			}
			else if (this.type >= ThumnbnailCapture.TYPE.WEAR_TOP && this.type <= ThumnbnailCapture.TYPE.WEAR_SHOES)
			{
				this.human.body.Anime.Play("mannequin");
			}
			else
			{
				this.human.body.Anime.Play("pose_D");
			}
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SKIN_M || this.type == ThumnbnailCapture.TYPE.BODY_TATTO_M)
		{
			this.human.body.Anime.Play("tachi_pose_00");
		}
		else
		{
			this.human.body.Anime.Play("tachi_pose_01");
		}
		this.human.body.Anime.speed = 0f;
	}

	// Token: 0x060016C0 RID: 5824 RVA: 0x00097FAC File Offset: 0x000961AC
	private void Update()
	{
		if (!this.Update_ManualCap())
		{
			this.Update_AutoCap();
		}
	}

	// Token: 0x060016C1 RID: 5825 RVA: 0x00097FCC File Offset: 0x000961CC
	private bool Update_ManualCap()
	{
		if (this.type == ThumnbnailCapture.TYPE.MOLE)
		{
			if (this.capturing)
			{
				this.step++;
				if (this.step < this.keys.Count)
				{
					this.human.customParam.head.moleTexID = this.keys[this.step];
					this.human.Apply();
					this.dataName = CustomDataManager.GetMole(this.keys[this.step]).textureName;
				}
				this.capturing = false;
			}
			if (Input.GetKeyDown(this.quickCapKey))
			{
				this.Capture();
				this.capturing = true;
			}
			return true;
		}
		if (this.type == ThumnbnailCapture.TYPE.BODY_TATTO_F)
		{
			if (this.capturing)
			{
				this.step++;
				if (this.step < this.keys.Count)
				{
					this.human.customParam.body.tattooID = this.keys[this.step];
					this.human.Apply();
					this.dataName = CustomDataManager.GetBodyTattoo_Female(this.keys[this.step]).textureName;
				}
				this.capturing = false;
			}
			if (Input.GetKeyDown(this.quickCapKey))
			{
				this.Capture();
				this.capturing = true;
			}
			return true;
		}
		if (this.type == ThumnbnailCapture.TYPE.BODY_TATTO_M)
		{
			if (this.capturing)
			{
				this.step++;
				if (this.step < this.keys.Count)
				{
					this.human.customParam.body.tattooID = this.keys[this.step];
					this.human.Apply();
					this.dataName = CustomDataManager.GetBodyTattoo_Male(this.keys[this.step]).textureName;
				}
				this.capturing = false;
			}
			if (Input.GetKeyDown(this.quickCapKey))
			{
				this.Capture();
				this.capturing = true;
			}
			return true;
		}
		return false;
	}

	// Token: 0x060016C2 RID: 5826 RVA: 0x000981F8 File Offset: 0x000963F8
	private void Update_AutoCap()
	{
		if (!this.capturing)
		{
			return;
		}
		if (this.step >= this.keys.Count)
		{
			this.capturing = false;
			return;
		}
		if (this.type == ThumnbnailCapture.TYPE.HAIR_SET)
		{
			this.human.customParam.hair.parts[0].ID = this.keys[this.step];
			this.dataName = CustomDataManager.GetHair_Back(this.keys[this.step]).prefab;
			this.human.ApplyHair();
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_BACK)
		{
			this.human.customParam.hair.parts[0].ID = this.keys[this.step];
			this.dataName = CustomDataManager.GetHair_Back(this.keys[this.step]).prefab;
			this.human.ApplyHair();
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_SIDE)
		{
			this.human.customParam.hair.parts[2].ID = this.keys[this.step];
			this.dataName = CustomDataManager.GetHair_Side(this.keys[this.step]).prefab;
			this.human.ApplyHair();
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_FRONT)
		{
			this.human.customParam.hair.parts[1].ID = this.keys[this.step];
			this.dataName = CustomDataManager.GetHair_Front(this.keys[this.step]).prefab;
			this.human.ApplyHair();
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.HAIR_MALE)
		{
			this.human.customParam.hair.parts[0].ID = this.keys[this.step];
			this.dataName = CustomDataManager.GetHair_Male(this.keys[this.step]).prefab;
			this.human.ApplyHair();
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type >= ThumnbnailCapture.TYPE.WEAR_TOP && this.type <= ThumnbnailCapture.TYPE.WEAR_SHOES)
		{
			WEAR_TYPE wear_TYPE = (WEAR_TYPE)(this.type - 5);
			this.dataName = CustomDataManager.GetWearData(this.human.sex, wear_TYPE, this.keys[this.step]).prefab;
			this.human.customParam.wear.wears[(int)wear_TYPE].id = this.keys[this.step];
			this.human.customParam.wear.wears[(int)wear_TYPE].color = null;
			this.human.customParam.wear.isSwimwear = (this.type >= ThumnbnailCapture.TYPE.WEAR_SWIM && this.type <= ThumnbnailCapture.TYPE.WEAR_SWIM_BOTTOM);
			this.human.wears.WearInstantiate(wear_TYPE, this.human.body.SkinMaterial, this.human.body.CustomHighlightMat_Skin);
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.WEAR_MALE_TOP)
		{
			WEAR_TYPE wear_TYPE2 = WEAR_TYPE.TOP;
			this.dataName = CustomDataManager.GetWearData(this.human.sex, wear_TYPE2, this.keys[this.step]).prefab;
			this.human.customParam.wear.wears[(int)wear_TYPE2].id = this.keys[this.step];
			this.human.customParam.wear.wears[(int)wear_TYPE2].color = null;
			this.human.customParam.wear.isSwimwear = (this.type >= ThumnbnailCapture.TYPE.WEAR_SWIM && this.type <= ThumnbnailCapture.TYPE.WEAR_SWIM_BOTTOM);
			this.human.wears.WearInstantiate(wear_TYPE2, this.human.body.SkinMaterial, this.human.body.CustomHighlightMat_Skin);
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.WEAR_MALE_SHOES)
		{
			WEAR_TYPE wear_TYPE3 = WEAR_TYPE.SHOES;
			this.dataName = CustomDataManager.GetWearData(this.human.sex, wear_TYPE3, this.keys[this.step]).prefab;
			this.human.customParam.wear.wears[(int)wear_TYPE3].id = this.keys[this.step];
			this.human.customParam.wear.wears[(int)wear_TYPE3].color = null;
			this.human.customParam.wear.isSwimwear = (this.type >= ThumnbnailCapture.TYPE.WEAR_SWIM && this.type <= ThumnbnailCapture.TYPE.WEAR_SWIM_BOTTOM);
			this.human.wears.WearInstantiate(wear_TYPE3, this.human.body.SkinMaterial, this.human.body.CustomHighlightMat_Skin);
			this.DynamicBoneDisable();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_SKIN_F)
		{
			this.dataName = CustomDataManager.GetFaceSkin_Female(this.keys[this.step]).prefab;
			this.human.customParam.head.faceTexID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_DETAIL_F)
		{
			this.dataName = CustomDataManager.GetFaceDetail_Female(this.keys[this.step]).prefab;
			this.human.customParam.head.detailID = this.keys[this.step];
			this.human.customParam.head.detailWeight = 1f;
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.MOLE)
		{
			this.dataName = CustomDataManager.GetMole(this.keys[this.step]).textureName;
			this.human.customParam.head.moleTexID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYESHADOE)
		{
			this.dataName = CustomDataManager.GetEyeShadow(this.keys[this.step]).textureName;
			this.human.customParam.head.eyeshadowTexID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.CHEEK)
		{
			this.dataName = CustomDataManager.GetCheek(this.keys[this.step]).textureName;
			this.human.customParam.head.cheekTexID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.LIP)
		{
			this.dataName = CustomDataManager.GetLip(this.keys[this.step]).textureName;
			this.human.customParam.head.lipTexID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_TATTO)
		{
			this.dataName = CustomDataManager.GetFaceTattoo_Female(this.keys[this.step]).textureName;
			this.human.customParam.head.tattooID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_SKIN_M)
		{
			this.dataName = CustomDataManager.GetFaceSkin_Male(this.keys[this.step]).prefab;
			this.human.customParam.head.faceTexID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_DETAIL_M)
		{
			this.dataName = CustomDataManager.GetFaceDetail_Male(this.keys[this.step]).prefab;
			this.human.customParam.head.detailID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.FACE_TATTO_M)
		{
			this.dataName = CustomDataManager.GetFaceTattoo_Male(this.keys[this.step]).textureName;
			this.human.customParam.head.tattooID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.BEARD)
		{
			this.dataName = CustomDataManager.GetBeard(this.keys[this.step]).prefab;
			this.human.customParam.head.beardID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYEBROW_F)
		{
			this.dataName = CustomDataManager.GetEyebrow_Female(this.keys[this.step]).prefab;
			this.human.customParam.head.eyeBrowID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYEBROW_M)
		{
			this.dataName = CustomDataManager.GetEyebrow_Male(this.keys[this.step]).prefab;
			this.human.customParam.head.eyeBrowID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYELASH_F)
		{
			this.dataName = CustomDataManager.GetEyelash(this.keys[this.step]).prefab;
			this.human.customParam.head.eyeLashID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYE_F)
		{
			this.dataName = CustomDataManager.GetEye_Female(this.keys[this.step]).prefab;
			this.human.customParam.head.eyeID_L = this.keys[this.step];
			this.human.customParam.head.eyeID_R = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.EYE_M)
		{
			this.dataName = CustomDataManager.GetEye_Male(this.keys[this.step]).prefab;
			this.human.customParam.head.eyeID_L = this.keys[this.step];
			this.human.customParam.head.eyeID_R = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SKIN_F)
		{
			this.dataName = CustomDataManager.GetBodySkin_Female(this.keys[this.step]).prefab;
			this.human.customParam.body.bodyID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SKIN_M)
		{
			this.dataName = CustomDataManager.GetBodySkin_Male(this.keys[this.step]).prefab;
			this.human.customParam.body.bodyID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.UNDER_HAIR)
		{
			this.dataName = CustomDataManager.GetUnderhair(this.keys[this.step]).prefab;
			this.human.customParam.body.underhairID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		else if (this.type == ThumnbnailCapture.TYPE.BODY_SUNBURN)
		{
			this.dataName = CustomDataManager.GetSunburn(this.keys[this.step]).textureName;
			this.human.customParam.body.sunburnID = this.keys[this.step];
			this.human.Apply();
			this.step++;
		}
		if (this.human.blink != null)
		{
			this.human.blink.Hold = true;
		}
		this.Capture();
	}

	// Token: 0x060016C3 RID: 5827 RVA: 0x00099134 File Offset: 0x00097334
	private void Capture()
	{
		string text = Application.dataPath + "/../" + this.folderName;
		if (!Directory.Exists(text))
		{
			Directory.CreateDirectory(text);
		}
		string filename = text + "/" + this.dataName + ".png";
		ScreenCapture.CaptureScreenshot(filename, this.superSize);
	}

	// Token: 0x060016C4 RID: 5828 RVA: 0x0009918C File Offset: 0x0009738C
	private void DynamicBoneDisable()
	{
		DynamicBone[] componentsInChildren = base.GetComponentsInChildren<DynamicBone>();
		for (int i = 0; i < componentsInChildren.Length; i++)
		{
			componentsInChildren[i].enabled = false;
		}
	}

	// Token: 0x04001A54 RID: 6740
	private string[] folderNames = new string[]
	{
		"Thumbnail_HairSet",
		"Thumbnail_HairBack",
		"Thumbnail_HairSide",
		"Thumbnail_HairFront",
		"Thumbnail_HairMale",
		"Thumbnail_WearTop",
		"Thumbnail_WearBot",
		"Thumbnail_WearBra",
		"Thumbnail_WearShorts",
		"Thumbnail_WearSwim",
		"Thumbnail_WearSwimTop",
		"Thumbnail_WearSwimBot",
		"Thumbnail_WearGlove",
		"Thumbnail_WearPanst",
		"Thumbnail_WearSocks",
		"Thumbnail_WearShoes",
		"Thumbnail_WearMaleTop",
		"Thumbnail_WearMaleShoes",
		"Thumnbs_FaceSkin",
		"Thumnbs_FaceDetail_F",
		"Thumnbs_Mole",
		"Thumnbs_EyeShadow",
		"Thumnbs_Cheek",
		"Thumnbs_Lip",
		"Thumnbs_FaceTattoo",
		"Thumnbs_FaceSkin_M",
		"Thumnbs_FaceDetail_M",
		"Thumnbs_FaceTattoo_M",
		"Thumnbs_Beard",
		"Thumnbs_eyebrow",
		"Thumnbs_eyelash",
		"Thumnbs_eye",
		"Thumnbs_eyebrow_m",
		"Thumnbs_eye_m",
		"thumnbs_bodyskin",
		"thumnbs_bodyskin_m",
		"thumnbs_underhair",
		"thumnbs_bodytattoo_f",
		"thumnbs_bodytattoo_m",
		"thumnbs_sunburn"
	};

	// Token: 0x04001A55 RID: 6741
	private Human human;

	// Token: 0x04001A56 RID: 6742
	private bool capturing;

	// Token: 0x04001A57 RID: 6743
	private int step;

	// Token: 0x04001A58 RID: 6744
	private List<int> keys = new List<int>();

	// Token: 0x04001A59 RID: 6745
	private string folderName = "Thumnbnail";

	// Token: 0x04001A5A RID: 6746
	private string dataName = string.Empty;

	// Token: 0x04001A5B RID: 6747
	public string cardF = "DefkoB.png";

	// Token: 0x04001A5C RID: 6748
	public string cardM = "Defo.png";

	// Token: 0x04001A5D RID: 6749
	public int superSize = 1;

	// Token: 0x04001A5E RID: 6750
	public ThumnbnailCapture.TYPE type = ThumnbnailCapture.TYPE.NONE;

	// Token: 0x04001A5F RID: 6751
	public Canvas canvas;

	// Token: 0x04001A60 RID: 6752
	public Camera[] cameras = new Camera[40];

	// Token: 0x04001A61 RID: 6753
	public KeyCode quickCapKey = KeyCode.P;

	// Token: 0x02000398 RID: 920
	public enum TYPE
	{
		// Token: 0x04001A63 RID: 6755
		NONE = -1,
		// Token: 0x04001A64 RID: 6756
		HAIR_SET,
		// Token: 0x04001A65 RID: 6757
		HAIR_BACK,
		// Token: 0x04001A66 RID: 6758
		HAIR_SIDE,
		// Token: 0x04001A67 RID: 6759
		HAIR_FRONT,
		// Token: 0x04001A68 RID: 6760
		HAIR_MALE,
		// Token: 0x04001A69 RID: 6761
		WEAR_TOP,
		// Token: 0x04001A6A RID: 6762
		WEAR_BOTTOM,
		// Token: 0x04001A6B RID: 6763
		WEAR_BRA,
		// Token: 0x04001A6C RID: 6764
		WEAR_SHORTS,
		// Token: 0x04001A6D RID: 6765
		WEAR_SWIM,
		// Token: 0x04001A6E RID: 6766
		WEAR_SWIM_TOP,
		// Token: 0x04001A6F RID: 6767
		WEAR_SWIM_BOTTOM,
		// Token: 0x04001A70 RID: 6768
		WEAR_GLOVE,
		// Token: 0x04001A71 RID: 6769
		WEAR_PANST,
		// Token: 0x04001A72 RID: 6770
		WEAR_SOCKS,
		// Token: 0x04001A73 RID: 6771
		WEAR_SHOES,
		// Token: 0x04001A74 RID: 6772
		WEAR_MALE_TOP,
		// Token: 0x04001A75 RID: 6773
		WEAR_MALE_SHOES,
		// Token: 0x04001A76 RID: 6774
		FACE_SKIN_F,
		// Token: 0x04001A77 RID: 6775
		FACE_DETAIL_F,
		// Token: 0x04001A78 RID: 6776
		MOLE,
		// Token: 0x04001A79 RID: 6777
		EYESHADOE,
		// Token: 0x04001A7A RID: 6778
		CHEEK,
		// Token: 0x04001A7B RID: 6779
		LIP,
		// Token: 0x04001A7C RID: 6780
		FACE_TATTO,
		// Token: 0x04001A7D RID: 6781
		FACE_SKIN_M,
		// Token: 0x04001A7E RID: 6782
		FACE_DETAIL_M,
		// Token: 0x04001A7F RID: 6783
		FACE_TATTO_M,
		// Token: 0x04001A80 RID: 6784
		BEARD,
		// Token: 0x04001A81 RID: 6785
		EYEBROW_F,
		// Token: 0x04001A82 RID: 6786
		EYELASH_F,
		// Token: 0x04001A83 RID: 6787
		EYE_F,
		// Token: 0x04001A84 RID: 6788
		EYEBROW_M,
		// Token: 0x04001A85 RID: 6789
		EYE_M,
		// Token: 0x04001A86 RID: 6790
		BODY_SKIN_F,
		// Token: 0x04001A87 RID: 6791
		BODY_SKIN_M,
		// Token: 0x04001A88 RID: 6792
		UNDER_HAIR,
		// Token: 0x04001A89 RID: 6793
		BODY_TATTO_F,
		// Token: 0x04001A8A RID: 6794
		BODY_TATTO_M,
		// Token: 0x04001A8B RID: 6795
		BODY_SUNBURN,
		// Token: 0x04001A8C RID: 6796
		NUM
	}
}
